package com.ruoyi.ihome.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 房间区域对象 ih_room_district
 * 
 * @author mage
 * @date 2024-08-13
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RoomDistrict extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 房间区域id */
    private Long id;
    private List<RoomAndDistrict> roomAndDistrict;

    /** 房间区域 */
    @Excel(name = "房间区域")
    private String roomDistrict;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setRoomDistrict(String roomDistrict) 
    {
        this.roomDistrict = roomDistrict;
    }

    public String getRoomDistrict() 
    {
        return roomDistrict;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("roomDistrict", getRoomDistrict())
            .toString();
    }
}
